package javaCode.chapter10.enum_;

/**
 * @author 徐州城
 * @version 1.0
 */
public class EnumerationExercise01 {
    public static void main(String[] args) {
        Gender2 boy = Gender2.BOY;
        Gender2 boy2 = Gender2.BOY;
        System.out.println(boy); //BOY boy.toString
        System.out.println(boy == boy2); //true 因为实例对象，共享静态变量

    }
}

enum Gender2{
    BOY,GIRL;
}